<include file="Public/siteTopbar" />
<style>
    body{ background:#000 url(__STATIC__/images/tips_img.jpg) no-repeat top right; background-size:cover; overflow:hidden;}
</style>


<div class="tips_only_text">
    <center>
        <img src="__STATIC__/images/only18_logo.png"  />
    </center>
    <b>Adults only (18+)</b>
    The www.secret-doll.com website contains adult material and is only suitable for those 18 years or older. Click Enter only if you are at least 18 years of age.
    <div class="clear"></div>
    <div class="only_a">
        <a href="" class="showfilter">Enter</a>
        <a href='javascript:window.open("about:blank","_self").close();'>Exit</a>
    </div>
    </center>
</div>

<script>
    // ajax 刪除購物車的商品
    $(function() {
        $(".showfilter").click(function(){
            var u_url="{$n_url}";


            $.ajax({
                type : "POST",
                url:"{:U('Home/Index/ajaxadultsonlyTop')}",//+tab,
                data:"", //
                dataType:'json',
                success: function(data){



                    if(data.status == 1)
                    {
                        if(!u_url){
                            window.location="{:U('Home/Index/index')}";
                        }else{
                            window.location=u_url;
                        }

                    }

                }
            });

            return false;
        });
    });

</script>

</body>
</html>